package com.group5.onlinegame.service;

import com.github.pagehelper.PageInfo;
import com.group5.onlinegame.entity.Game;
import com.group5.onlinegame.entity.GameRoom;
import com.group5.onlinegame.entity.GameType;

import java.util.List;

public interface IGameService {
    PageInfo<Game> getList(int page);
    PageInfo<GameType> getTypeList(int page);
    List<GameType> getType();
    Game getGameById(int id);
    int addGame(Game game);
    int editGame(Game game);
    int delGame(int id);
    GameType gameType(int typeid);
    int editGameType(GameType gameType);
    int addGameType(GameType gameType);
    PageInfo<GameRoom> getRoomList(int page);
    GameRoom checkRoom(int roomid);
    int editRoom(GameRoom gameRoom);
    int delType(Integer typeid);
    int delRoom(Integer roomid);
    int roomCheck(Integer roomid);
}
